Skip to content

docs: declare chain variable and import abstractTestnet#392

Merged
coffeexcoin merged 1 commit intoAbstract-Foundation:mainfrom
jeffbrownn:chain
Mar 3, 2026
Merged

docs: declare chain variable and import abstractTestnet#392
coffeexcoin merged 1 commit intoAbstract-Foundation:mainfrom
jeffbrownn:chain

Conversation

@jeffbrownn
Copy link
Contributor

@jeffbrownn jeffbrownn commented Feb 18, 2026

Added import abstractTestnet from viem/chains:

import { abstractTestnet } from 'viem/chains';

since:

  • this import is present in viem/chains (verified)
  • this import is used in other examples (AbstractWalletProvider, deployContract, createSessionClient etc)

In the Quick Start example, the chain variable is used inside the createAbstractClient call:

const abstractClient = await createAbstractClient({
  signer,
  chain,
  ...
});

However, the chain variable is not declared anywhere, so after importing it, I added it as follows:

const chain = abstractTestnet;

PR-Codex overview

This PR focuses on integrating the abstractTestnet from the viem/chains package into the existing code, enhancing the functionality of the client by allowing it to utilize this specific testnet.

Detailed summary

  • Added import for abstractTestnet from viem/chains.
  • Introduced a const chain = abstractTestnet; to utilize the testnet.
  • Adjusted the documentation section to ensure proper formatting at the end of the file.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@cursor
Copy link

cursor bot commented Feb 18, 2026

PR Summary

Low Risk
Documentation-only changes that adjust example imports/variables and formatting; no runtime code paths are affected.

Overview
Fixes the @abstract-foundation/agw-client Quick Start README example by importing abstractTestnet from viem/chains and explicitly defining const chain = abstractTestnet before calling createAbstractClient.

Cleans up the Documentation section formatting (ensures the final link line is properly rendered/terminated).

Written by Cursor Bugbot for commit 91b0141. This will update automatically on new commits. Configure here.

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

⚠️ No Changeset found

Latest commit: 91b0141

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coffeexcoin coffeexcoin merged commit 051eb6a into Abstract-Foundation:main Mar 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants